package org.bitmap.mm.util;

import java.lang.ref.WeakReference;

import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;

class AsyncDrawableLove extends BitmapDrawable {
	private final WeakReference<LoveBitmapTasks> bitmapWorkerTaskReference;

	public AsyncDrawableLove(Resources res, Bitmap bitmap,
			LoveBitmapTasks bitmapWorkerTask) {
		super(res, bitmap);

		bitmapWorkerTaskReference = new WeakReference<LoveBitmapTasks>(
				bitmapWorkerTask);
	}

	public LoveBitmapTasks getBitmapWorkerTask() {
		return bitmapWorkerTaskReference.get();
	}
}
